.groupPage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
}

.header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.backButton {
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
}

.headerTitle {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.groupInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  background-color: #fff;
  margin-bottom: 16px;
}

.groupAvatar {
  margin-bottom: 16px;
}

.avatarLarge {
  border-radius: 50%;
  object-fit: cover;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.groupName {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.groupMemberCount {
  font-size: 14px;
  color: #999;
}

.membersList {
  background-color: #fff;
  margin-bottom: 16px;
  padding: 16px;
}

.membersHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
}

.membersTitle {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.membersCount {
  font-size: 14px;
  color: #999;
}

.membersGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.memberItem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memberAvatar {
  margin-bottom: 8px;
}

.memberName {
  font-size: 12px;
  color: #333;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actionButtons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  margin-top: auto;
}

.primaryButton {
  background-color: #2b7efb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primaryButton:hover {
  background-color: #1a6fe0;
}

.dangerButton {
  background-color: #fff;
  color: #ff3b30;
  border: 1px solid #ff3b30;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dangerButton:hover {
  background-color: #fff5f5;
}

.disabledButton {
  opacity: 0.6;
  cursor: not-allowed;
}

.createGroupForm {
  padding: 16px;
  background-color: #fff;
  margin-bottom: 16px;
}

.formGroup {
  margin-bottom: 24px;
}

.formLabel {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.formInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.formInput:focus {
  outline: none;
  border-color: #2b7efb;
}

.friendsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.friendItem {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.friendItem:hover {
  background-color: #f0f0f0;
}

.friendSelected {
  background-color: #e6f0ff;
}

.friendAvatar {
  margin-right: 12px;
}

.friendInfo {
  flex: 1;
}

.friendName {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.friendStatus {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.friendCheckbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friendSelected .friendCheckbox {
  border-color: #2b7efb;
  background-color: #fff;
}